<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var Array3 = [4, 33, 56, 1, 24, 67, 99];
        for (var i = 1; i < Array3.length; i++) {
            var max = Array3[0];
            if (Array3[i] > max) {
                var max = Array3[i];
            }
        }
        console.log(max);
    </script>
</head>

<body>

</body>

</html>